<?php

namespace App\Models\Api;

class CompanyPhoto extends ApiModel
{
    //表名
    protected $table = 'company_photo';

    protected $guarded = [];

    /**
     * The attributes that should be hidden for arrays.
     * 隐藏字段
     * @var array
     */
    protected $hidden = ['uid', 'com_id', 'remark',
        'created_at', 'updated_at'];

    public function getFileAttribute($value)
    {
        return 'companyphoto/' . $value;
    }
}
